package com.lin.cloud.disk.entity.request.directory;

import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 修改目录名字
 * @author ljc
 * @date 2020/12/31 2:46
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UpdateDirectoryNameRequest extends AccountRequestDTO {

    @ApiModelProperty(value = "目录ID", name = "parentId")
    @NotNull(message = "目录ID不能为空")
    private Long id;

    @ApiModelProperty(value = "目录名称", name = "directoryName")
    @NotBlank(message = "目录名称不能为空")
    private String directoryName;
}